<template>
  <div>
    <div>Posts</div>
    <div>{{ count }}</div>
    <div>
      <el-button @click="addCount">加1</el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: "Posts",
  data() {
    return {
      count: 0,
    };
  },
  methods: {
    addCount() {
      this.count += 1;
    },
  },
};
</script>

<style lang="less" scoped>
</style>